package cn.itsource.ymcc.client;

import cn.itsource.ymcc.client.fallback.MediaFeignClientFactory;
import cn.itsource.ymcc.domain.MediaFile;
import cn.itsource.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "service-media",fallbackFactory = MediaFeignClientFactory.class)
@RequestMapping("/mediaFile")
public interface MediaFeignClient {

    //根据章节ID获取视频列表
    @GetMapping("/selectByCourseId/{id}")
    JSONResult selectByCourseId(@PathVariable("id")Long id);
}
